package com.ruoyi.drinkshop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品属性，甜度，温度等对象 shop_goods_property
 * 
 * @author hongly
 * @date 2024-12-17
 */
public class GoodsProperty extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Integer id;

    /** 商品id */
    @Excel(name = "商品id")
    private Integer goodsId;

    /** 内置的属性类型 */
    @Excel(name = "内置的属性类型")
    private String category;

    /** 可选项 */
    @Excel(name = "可选项")
    private String propertyOption;

    /** 是否作为默认选择 */
    @Excel(name = "是否作为默认选择")
    private Integer isDefault;

    /** 重置价格 */
    @Excel(name = "重置价格")
    private Integer rebasePrice;

    /** 额外价格 */
    @Excel(name = "额外价格")
    private Integer extraPrice;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setGoodsId(Integer goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Integer getGoodsId() 
    {
        return goodsId;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setPropertyOption(String propertyOption) 
    {
        this.propertyOption = propertyOption;
    }

    public String getPropertyOption() 
    {
        return propertyOption;
    }
    public void setIsDefault(Integer isDefault) 
    {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault() 
    {
        return isDefault;
    }
    public void setRebasePrice(Integer rebasePrice) 
    {
        this.rebasePrice = rebasePrice;
    }

    public Integer getRebasePrice() 
    {
        return rebasePrice;
    }
    public void setExtraPrice(Integer extraPrice) 
    {
        this.extraPrice = extraPrice;
    }

    public Integer getExtraPrice() 
    {
        return extraPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsId", getGoodsId())
            .append("category", getCategory())
            .append("propertyOption", getPropertyOption())
            .append("isDefault", getIsDefault())
            .append("rebasePrice", getRebasePrice())
            .append("extraPrice", getExtraPrice())
            .toString();
    }
}
